/*
 * @Author: C.
 * @Date: 2023-04-03 16:48:39
 */
// 0 1 2 4
const isCURD = true;
const saleMenu = {
  name: 'Sa_Sale',
  title: '销售',
  children: [
    { title: '销售订单', name: 'Sa_Order', isCURD },
    { title: '销售发货', name: 'Sa_Delivery', isCURD },
    { title: '销售退货', name: 'Sa_Return', isCURD },
    { title: '销售对账', name: 'Sa_Account', isCURD },
    {
      title: '基础信息',
      name: 'Sa_BaseData',
      children: [{ title: '客户', name: 'Sa_Customer' }],
    },
  ],
};
const productionMenu = {
  name: 'Pr_Production',
  title: '生产',
  children: [
    { title: '生产计划单', name: 'Pr_ProductionPlan', isCURD },
    { title: 'MRP运算', name: 'Pr_MRPCalculated' },
    { title: '生产排程', name: 'Pr_ProductionSchedule', isCURD },
    { title: '生产任务单', name: 'Pr_ProductionTask', isCURD },
    { title: '生产日报', name: 'Pr_ProductionDailyReport', isCURD },
    { title: '生产领料', name: 'Pr_Picking', isCURD },
    { title: '生产退料', name: 'Pr_ReturnPicking', isCURD },
    { title: '生产补料', name: 'Pr_ProductionReplenishment', isCURD },
    { title: '生产入库', name: 'Pr_ProduceIn', isCURD },
    { title: '检验单', name: 'Pr_Checkout', isCURD },
    {
      title: '报表',
      name: 'Pr_Report',
      children: [{ title: '成本核算', name: 'Pr_CostAccounting' }],
    },
    {
      title: '基础信息',
      name: 'Pr_BaseData',
      children: [
        { title: '不合格原因', name: 'Pr_UnqualifiedReason' },
        { title: '设备', name: 'Pr_Equipment' },
      ],
    },
  ],
};
const purchaseMenu = {
  name: 'Pu_Purchase',
  title: '采购',
  children: [
    { title: '采购申请', name: 'Pu_Requisition', isCURD },
    { title: '采购订单', name: 'Pu_Order', isCURD },
    { title: '采购入库', name: 'Pu_StockIn', isCURD },
    { title: '采购退货', name: 'Pu_Return', isCURD },
    { title: '采购对账', name: 'Pu_Account', isCURD },
    { title: '委外加工单', name: 'Pu_Outsourcing', isCURD },
    { title: '委外入库', name: 'Pu_OutsourcingInStorage', isCURD },
    { title: '委外对账', name: 'Pu_OutsourcingAccount', isCURD },
  ],
};
// St_Stockroom
const stockroomMenu = {
  name: 'St_Stockroom',
  title: '仓库',
  children: [
    { title: '其它出库', name: 'St_OtherOut', isCURD },
    { title: '其它入库', name: 'St_OtherIn', isCURD },
    { title: '库存期初', name: 'St_StockInit', isCURD },
    { title: '库存盘点', name: 'St_StockCheck', isCURD },
    { title: '成本调整', name: 'St_CostChange', isCURD },
    { title: '物料拆装', name: 'St_SplitAssemble', isCURD },
    { title: '调拨单', name: 'St_Dispatch', isCURD },
    { title: '报损单', name: 'St_WasteOut', isCURD },
    { title: '报溢单', name: 'St_SurplusIn', isCURD },
    {
      title: '报表',
      name: 'St_Report',
      children: [{ title: '结存汇总', name: 'St_StockSummary' }],
    },
    {
      title: '基础信息',
      name: 'St_BaseData',
      children: [
        { title: '仓库', name: 'St_Stock' },
        { title: '库位', name: 'St_StockroomLocation' },
      ],
    },
  ],
};
// const baseDataMenu = {
//   name: 'Ba_BaseData',
//   title: '基础',
//   children: [
//     { title: '物料', name: 'Ba_Item' },
//     { title: '物料清单', name: 'Ba_Bom' },
//     { title: '单位', name: 'Ba_Unit' },
//     { title: '货币', name: 'Ba_Currency' },
//     { title: '用户', name: 'Ba_UserData' },
//     { title: '用户日志', name: 'Ba_UserLog' },
//     { title: '角色权限', name: 'Ba_Role' },
//     { title: '系统设置', name: 'Ba_SystemSetup' },
//     { title: '审核流', name: 'Ba_AuditFlowSetup' },
//     { title: '编号规则', name: 'Ba_CodeRule' },
//   ],
// };
export const menu = [saleMenu, productionMenu, purchaseMenu, stockroomMenu];
// export const menu = [saleMenu];
